package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {
    private int id;
    private String name;
    private String password;
    private int roleId;
    private int infoId;
    private Boolean state;
    private List<Menu> menus;
    public List<Menu> getMenus() {
        return menus;
    }
    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }
    public User(int id, String name, String password, int roleId, int infoId) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.roleId = roleId;
        this.infoId = infoId;
    }

    public User(String name, String password, int roleId, int infoId) {
        this.name = name;
        this.password = password;
        this.roleId = roleId;
        this.infoId = infoId;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", name=" + name + ", password=" + password + ", roleId=" + roleId + ", infoId=" + infoId + "]";
    }
}
